package com.legrand.www.module.constant;

/**
 * @author xiah
 * 2018-06-27 11:17:35
 * 用户第三方登录类型
 */
public enum ThirdLoginType {
    /**
     * QQ 采用QQ登录
     */
    QQ,
    /**
     * WECHAT 采用WECHAT登录
     */
    WECHAT;

    public static Boolean checkThirdLoginType(String type) {
        ThirdLoginType[] ss = ThirdLoginType.values();
        if(type==null){
            return false;
        }
        ThirdLoginType inPutType=ThirdLoginType.valueOf(type);
        for (ThirdLoginType encryptionType : ss) {
            if (encryptionType.equals(inPutType)) {
                return true;
            }
        }
        return false;
    }
}
